export interface UserRegister {
  username: string
  password: string
  name: string
  email: string
  role: string
  classId: number
}

export interface UserLogin {
  username: string
  password: string
}

export interface UserInfo {
  id: number
  username: string
  name: string
  email: string
  role: string
  classId: number
  avatar?: string
}

export interface UserUpdateCurrent {
  name: string
  email: string
}

export interface PwdChange {
  oldPassword: string
  newPassword: string
}

export type UserList = UserInfo[]

export interface UserUpdateAdmin {
  username: string
  name: string
  email: string
  role: string
  classId: number
}

export interface DepartmentSet {
  departmentId: number
  reason: string
}
